package com.laijiale.dto;

import cn.hutool.core.date.DateTime;
import com.laijiale.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.cglib.core.Local;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author laijiale
 * @date 2025年01月09日 14:28
 */
 @Schema(name ="通知修改DTO")
 @Data
 public class SeckillUpdateDTO implements Serializable, RE {
   @NotNull(message = "主键不能为空")
   @Schema(description = "主键")
   private Long id;
    @Pattern(regexp = TITLE_RE, message = TITLE_RE_MSG)
    @Schema(description = "标题")
    private String title;
    @Schema(description = "开始时间")
    private LocalDateTime startTime;
    @Schema(description = "结束时间")
    private LocalDateTime endTime;
    @Schema(description = "描述")
    private String info;
}
